export default [
  {
    path: '/',
    redirect: '/monitor',
  },
  {
    path: '/monitor',
    name: '监测平台',
    component: './monitor',
  },
  {
    path: '/focus',
    name: '集中充电管理',
    component: './focus',
  },
  {
    path: '/rfid',
    name: 'RFID标签管理',
    component: './rfid',
  },
  {
    path: '/electrical',
    name: '电器指纹管理',
    component: './electrical',
  },
  {
    path: '/elevator',
    name: '电梯识别管理',
    component: './elevator',
  },
  {
    path: '/norule',
    name: '违规电器管理',
    component: './norule',
  },
  {
    path: '/charge',
    name: '集充消防管理',
    component: './charge',
  },
  {
    path: '/system',
    name: '系统管理',
    component: '../layouts/SystemLayout',
    routes: [
      {
        path: '/system',
        redirect: '/system/user',
      },
      {
        path: '/system/user',
        name: '用户管理',
        component: './system/user',
      },
      {
        path: '/system/role',
        name: '角色管理',
        component: './system/role',
      },
      {
        path: '/system/area',
        name: '区域管理',
        component: './system/area',
      },
      {
        path: '/system/firec',
        name: '集充消防',
        component: './system/firec',
      },
      {
        component: './404',
      },
    ],
  },
];
